.logo {
    height: 80px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.navbar {
    background-color: #333;
    color: white;
    list-style: none;
    text-align: center;
    padding: 25px 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    height: 65px;

}

.navbar li {
    /* display: inline; */
    padding-right: 10px;

}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}
/* 下拉菜单样式 */
.dropdown {
    position: absolute;
    display: inline-block;
}

/* 下拉按钮样式 */
.dropbtn {
    background-color: #333; /* 导航项背景色 */
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

/* 下拉内容样式（默认隐藏）*/
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    z-index: 3;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* 下拉内容链接样式 */
.dropdown-content a {
    padding: 15px;
    color: black;
    text-decoration: none;
    display: block;
    position: relative; /* 将定位方式改为相对定位 */
}

/* 鼠标悬停时下拉内容链接样式 */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* 当鼠标悬停在下拉按钮上时显示下拉内容 */
.dropdown:hover .dropdown-content {
    display: block;
}

/* 右对齐最后一个二级菜单 */
.navbar li:last-child .dropdown-content {
    right: 0;
}

/* 确保最后一个二级菜单不超出页面 */
.navbar li:last-child .dropdown-content {
    left: auto;
}